home *** CD-ROM | disk | FTP | other *** search
/ Java Programmer's Toolkit / Java Programmer's Toolkit.iso / applets / clock2 / gourl.jav < prev    next >
Text File  |  1995-12-15  |  369b  |  15 lines

  1. import java.net.URL;
  2. import java.net.MalformedURLException;
  3.  
  4. public class goUrl extends java.applet.Applet
  5. {
  6.   URL homepage;
  7.   public void init()
  8.     {
  9.       try {
  10.     homepage=new URL("http://www.edu.isy.liu.se/~d94nilhe/");
  11.       }catch (MalformedURLException e){/*Write your error messages here*/}
  12.       getAppletContext().showDocument(homepage);
  13.     }
  14. }
  15.